package com.vxdata.utils.modules.weixin.utils;

import com.vxdata.common.core.domain.entity.SysUser;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Set;

/**
 * 登录凭证校验的返回数据
 */
@Data
@ApiModel(value = "登录凭证校验的返回数据", description = "小程序")
public class CodeResult {

    @ApiModelProperty("用户在开放平台的唯一标识符，若当前小程序已绑定到微信开放平台帐号下会返回，详见 UnionID 机制说明。")
    private String unionid;

    @ApiModelProperty("错误码")
    private int errcode;

    @ApiModelProperty("错误信息")
    private String errmsg;

    @ApiModelProperty("手机号")
    private String phone;

    @ApiModelProperty("角色对象")
    private Set<String> roles;

    @ApiModelProperty("用户唯一标识")
    private String openid;

    @ApiModelProperty("会话密钥")
    private String session_key;

    @ApiModelProperty("用户信息")
    private SysUser user;

    @ApiModelProperty("令牌")
    private String token;

}
